local skynet = require "skynet"
local handle_room = {}
local pack_id = 20
local machine = require "machine"
local log = require "sky_log"
--local sky_queue = require "queue"

function handle_room:login_req(agent)
    local  player_info = {
        player_id = 1000,
        gold = 1000,
        username = "测试玩家",
        headimg_id = 1,
        sex = 1,
        vip_level = 99,
        room_id = 25001,
        hall_index = 1,
        is_robot = true,
        table_id = "10001-25001-1",
        --state = res.in_game     --是否在游戏中
    }
    log.debug("login_req player_info=", player_info)
    skynet.send(".service_room_manager", "lua", "enter_room", agent, player_info)
end

function handle_room:match_req(agent)
    local player_id = 1000
    skynet.send(".service_room_manager", "lua", "enter_game", agent, player_id)
end

return handle_room